# Template to be included from every makefile that creates libs/progs
# $Id: mkcommon.inc.in,v 1.40.2.15 2009/12/03 11:35:15 rjs Exp $
# vim: syntax=make noexpandtab
#
#
# The Makefile that uses this template has to set
# top_builddir	= ...
# before including $(top_builddir)/config/mkcommon.inc
#

srcdir		= .
OO		= .
PATHSEP		= /

topbuilddir	= $(top_builddir)

# general stuff (configure)
VPATH		= $(srcdir)
VERSION		= @VERSION@
SHELL		= @SHELL@
INSTALL		= $(top_builddir)/config/install-sh -c
INSTALL_DATA	= ${INSTALL} -m 644
EXE		= @EXEEXT@
OBJ		= @OBJEXT@
CC		= @CC@
CXX		= @CXX@
STDCPP		= @STDCPP@
RM		= @RM@
MKDIR		= mkdir
MOVE		= mv
BINDINGS	= @BINDINGS@
PLOPBINDINGS	= @PLOPBINDINGS@
TETBINDINGS	= @TETBINDINGS@
PCOSBINDINGS	= @PCOSBINDINGS@
LIBTARGETS	= @LIBTARGETS@
BINDTARGETS	= @BINDTARGETS@
PROGTARGETS	= @PROGTARGETS@
ATSDIR		= @ATSDIR@
PROGSDIR	= @PROGSDIR@
STDDIRS		= libs bind
PDFFONT_TOOL	= @PDFFONT_TOOL@
INTERNDIR	= @INTERNDIR@

# build related stuff (configure)
LDFLAGS		= @LDFLAGS@
NO_O		= @NO_O@
PDFOPTIMIZE     = @PDFOPTIMIZE@
NOOCFLAGS	= @CFLAGS@ @DEFS@ $(PDFWALL) $(PDFPEDANTIC) $(MYCFLAGS) 
CFLAGS		= $(PDFOPTIMIZE) $(NOOCFLAGS)
CPPFLAGS	= @CPPFLAGS@ $(INCLUDES)
CXXFLAGS	= @CXXFLAGS@
PDFWALL		= @PDFWALL@
PDFPEDANTIC	= @PDFPEDANTIC@
PDFCPEDANTIC	= @PDFCPEDANTIC@
TIFFWRITE	= @TIFFWRITE@
FLATE_ASM_OBJ   = @FLATE_ASM_OBJ@

# libtool specific
LA                 = .la
DLL                = $(LA)
LIB_PREFIX	   = lib
LO                 = .lo
WITH_SHARED        = @WITH_SHARED@
RPATH              = @RPATH@

LIBTOOL            = $(top_builddir)/libtool --silent
LIBTOOL_CC         = $(LIBTOOL) --mode=compile
LIBTOOL_LD         = $(LIBTOOL) --mode=link
LIBTOOL_EXE        = $(LIBTOOL) --mode=execute -dlopen $(LIBNAME)

# Java
JAVA_COMPATIBILITY	= @JAVA_COMPATIBILITY@

# Perl
PERLLIBDIR	= @PERLLIBDIR@
PERLINCLUDE	= @PERLINCLUDE@
PERLLINK	= @PERLLINK@
PERL		= @PERL@
PERLBOOLDEF	= @PERLBOOLDEF@

PYTHONLIBDIR	= @PYTHONLIBDIR@
PYINCLUDE	= @PYINCLUDE@

RUBYINCLUDE	= @RUBYINCLUDE@
RUBYLIBDIR	= @RUBYLIBDIR@
RUBY       	= @RUBY@

TCLINCLUDE	= @TCLINCLUDE@
TCLPACKAGEDIR	= @TCLPACKAGEDIR@
TCLBIN		= @TCLBIN@

# PDFlib includes
PDFLIBINC	= @PDFLIBINC@
TIFFLIBINC	= @TIFFLIBINC@
JPEGLIBINC	= @JPEGLIBINC@
ZLIBINC		= @FLATELIBINC@
FLATELIBINC	= @FLATELIBINC@
FONTLIBINC	= @FONTLIBINC@
PNGLIBINC	= @PNGLIBINC@
PDCORELIBINC	= @PDCORELIBINC@
PDILIBINC	= @PDILIBINC@
PDPAGELIBINC	= @PDPAGELIBINC@
PDULIBINC	= @PDULIBINC@
TETLIBINC	= @TETLIBINC@
PCOSLIBINC	= @PCOSLIBINC@
PLOPLIBINC	= @PLOPLIBINC@
CLLIBINC        = @CLLIBINC@
EXPATLIBINC     = @EXPATLIBINC@
OPENSSLLIBINC   = @OPENSSLLIBINC@
JAVAINCLUDE	= @JAVAINCLUDE@
UTILLIBINC      = @UTILLIBINC@
ATSLIBINC       = @ATSLIBINC@
ICULIBINC       = @ICULIBINC@
ICUTLELIBINC    = @ICUTLELIBINC@

# libs stuff
EXTERNALLIBS    = @EXTERNALLIBS@
PDFLIBNAME	= @PDFLIBNAME@
PDFLIB_LTVERSION= @PDFLIB_LTVERSION@
PLOP_LTVERSION  = @PLOP_LTVERSION@
TET_LTVERSION   = @TET_LTVERSION@
PCOS_LTVERSION  = @PCOS_LTVERSION@
LTVERSIONINFO   = $(PDFLIB_LTVERSION)
PDFLIBCONVENIENT= @PDFLIBCONVENIENT@
CONVENIENT	= $(PDFLIBCONVENIENT)

# libs
PDFLIBLINK	= @PDFLIBLINK@
PDFLIB_LINK	= @PDFLIB_LINK@
TIFFLIBLINK	= @TIFFLIBLINK@
JPEGLIBLINK	= @JPEGLIBLINK@
FLATELIBLINK	= @FLATELIBLINK@
FONTLIBLINK	= @FONTLIBLINK@
PNGLIBLINK	= @PNGLIBLINK@
PDCORELIBLINK	= @PDCORELIBLINK@
PDILIBLINK	= @PDILIBLINK@
PDPAGELIBLINK	= @PDPAGELIBLINK@
EXPATLIBLINK    = @EXPATLIBLINK@
OPENSSLLIBLINK  = @OPENSSLLIBLINK@
ICULIBLINK      = @ICULIBLINK@
ICUTLELIBLINK   = @ICUTLELIBLINK@

# TET libs
TETLIBLINK	= @TETLIBLINK@
TETLIB_LINK	= @TETLIB_LINK@

# PLOP libs
PLOPLIBLINK	= @PLOPLIBLINK@
PLOPLIB_LINK	= @PLOPLIB_LINK@

# PCOS libs
PCOSLIBLINK	= @PCOSLIBLINK@
PCOSLIB_LINK	= @PCOSLIB_LINK@

# commandline lib
CLLIBLINK       = @CLLIBLINK@

# utility lib
UTILLIBLINK     = @UTILLIBLINK@

# ATS lib
ATSLIBLINK     = @ATSLIBLINK@

PDULIBLINK	= @PDULIBLINK@

# libraries to link a shared library for the binding; this is special
# for USS but on normal platforms this defaults to the standard shared libs
BIND_PDFLIBLINK = $(PDFLIBLINK)
BIND_PLOPLIBLINK = $(PLOPLIBLINK)
BIND_PCOSLIBLINK = $(PCOSLIBLINK)
BIND_TETLIBLINK = $(TETLIBLINK)

# installation directories (configure)
prefix          = @prefix@
exec_prefix     = @exec_prefix@
libdir          = @libdir@
includedir      = @includedir@
bindir          = @bindir@
